/* Hide or show the blocks */
$(document).ready(function(){
    $('.expcolimage').click(function(){
        $(this).parent().parent().parent().next('tbody').slideToggle("fast");
    });
});


/* Render the cleditor for the Textareas */
 $(document).ready(function() {
    $("#message").cleditor({width: '85%', height: 350});
 });

/* Scroll to the top */
$(document).ready(function() {
    $('a[href=#top]').click(function(){
        $('html').animate({scrollTop:0}, 'slow');
        return false;
    });
});

/* Show the actions on posts */
$(document).ready(function() {
    $("td.post").mouseover(function(){
        $("div.actionsOnPost:first",this).fadeIn('fast');
    }).mouseleave(function(){
        $("div.actionsOnPost:first",this).fadeOut('fast');
    });

});